import React from 'react'


const Index = React.lazy(() => import('../views/diseaseFriend/index'))
const Detail = React.lazy(() => import('../views/diseaseFriend/detail'))
const UserInfo = React.lazy(() => import('../views/diseaseFriend/userInfo'))
const Write = React.lazy(() => import('../views/diseaseFriend/writeDisease'))


export default [
  {
    path: '/disease',
    element: <Index></Index>
  },
  {
    path: '/disease/:id',
    element: <Detail></Detail>
  },
  {
    path: '/disease/user/:id',
    element: <UserInfo></UserInfo>
  },
  {
    path: '/disease/write',
    element: <Write></Write>
  }
]